from pathlib import Path
path=Path('pro.txt')
path.write_text('I love Python')